package com.bailian.spring.ioc.listener_01;

import com.bailian.spring.ioc.listener_01.service.RegisterService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author gaoxu
 * date: Created on 2021/11/2 上午10:29
 */
public class QuickstartListenerApplication {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx =
                new AnnotationConfigApplicationContext("com.bailian.spring.ioc");

        RegisterService registerService = ctx.getBean(RegisterService.class);
        registerService.register("大黄");
    }
}
